<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="app" uri="/application" %>
<%@ taglib  prefix="s"  uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<link href="../css/css.css" rel="stylesheet" type="text/css" />
<link href="../css/dtree.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../scripts/dtreeAuth.js"></script>
<style type="text/css">
 .searchtag {display: inline;}
 .searchtag dd {
    color: #5C5C5C;
    background:#FEF9DE;
    display: inline;
    float: left;
    white-space: nowrap;
    margin-left:10px;
    padding:1px;
}

.searchtag dd span {background: url("../images/sprite.png") no-repeat scroll -126px -30px transparent; 
    cursor: pointer;
    display: inline-block;
    height: 12px;
    overflow: hidden;
    position: relative;
    top: 2px;
    width: 13px;

    }
    
    
.searchtag {
    position: relative;
}
.searchtag dt {
    left: 15px;
    position: absolute;
    top: 10px;
}
#keyword_list_div {}
#keyword_list_div span {color: #5C5C5C; background:#FEF9DE;height:22px;display: inline-block;margin:2px;padding:2px;min-width: 80px;text-align: center;}
.content_main table td {text-align: left;}

</style>

</head>
<body>
<div id="all_main">
  <div class="head_main">
    <div class="main_nav">广告订单->设置广告素材</div>
    <div class="main_soso">
    	
    </div>
    <div class="main_title">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <th width="100%" style="border-left:none;text-align: left;font-weight: normal;"><span style="color:#229BC1;font-weight: bold;">广告基本信息</span> -&gt;投放条件-&gt;设置广告素材-&gt;完成 </th>
        </tr>
      </table>
    </div>
  </div>
  <div class="content_main">
    <form action="/campaign/su_campaign_three.shtml" name="form01" method="post" enctype="multipart/form-data">
    <input name="id" value="${campaign.adId}"  type="hidden"/>
    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="background_hegh01">
      <tr style="display: none;">
        <td width="15%" style="border-left:none" align="right">素材类型：</td>
        <td width="">
        
          <input type="radio"  name="content.displayType"  value="i"  <c:if test="${content.displayType!='it' && content.displayType!='t'}" >checked="checked" </c:if> />图片&nbsp;&nbsp;
          <input type="radio"  name="content.displayType"  value="it" <c:if test="${content.displayType=='it'}" >checked="checked" </c:if>/>图片加文字&nbsp;
          <input type="radio"  name="content.displayType"  value="t"  <c:if test="${content.displayType=='t'}" >checked="checked" </c:if>/>文字
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">显示类型：</td>
        <td width="">
                <input type="radio" name="content.viewType" value="j" <c:if test="${empty content.viewType || content.viewType=='j'}" >checked="checked" </c:if>/>积分墙&nbsp;&nbsp;
                <input type="radio" name="content.viewType" value="t" <c:if test="${content.viewType=='t'}" >checked="checked" </c:if> />推荐墙&nbsp;
                <input type="radio" name="content.viewType" value="c" <c:if test="${content.viewType=='c'}" >checked="checked" </c:if>/>插屏
                <input type="radio" name="content.viewType" value="p" <c:if test="${content.viewType=='p'}" >checked="checked" </c:if>/>push&nbsp;&nbsp;
                <input type="radio" name="content.viewType" value="b" <c:if test="${content.viewType=='b'}" >checked="checked" </c:if> />banner&nbsp;

        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">点击类型：</td>
        <td width="">
                <input type="radio" name="content.clickType" value="d" <c:if test="${content.clickType!='w'}" >checked="checked" </c:if>/>点击下载&nbsp;&nbsp;
                <input type="radio" name="content.clickType" value="w" <c:if test="${content.clickType=='w'}" >checked="checked" </c:if> />打开页面&nbsp;
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">广告图片：</td>
        <td width=""><input name="imgFile" value="" type="file" size="20"  class="inputwidth01"  />
        <c:if test="${!empty content.imgPath}">
          <br/><app:image src="${content.imgPath}"></app:image>
        </c:if>
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">广告title：</td>
        <td width=""><input name="content.adTitle" value="${content.adTitle}" type="text" size="20" style="width:240px;"  class="inputwidth01" id="content.adTitle"  maxlength="256" />
        <span style="color:#666">20个字符以内!</span>
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">广告文字：</td>
        <td width=""><input name="content.adText" value="${content.adText}" type="text" size="20" style="width:240px;" class="inputwidth01"   maxlength="256" />
        <span style="color:#666">20个字符以内!</span>
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">广告连接：</td>
        <td width=""><input name="content.adUrl" value="${content.adUrl}" type="text" size="20" style="width:240px;" class="inputwidth01" id="textfield" maxlength="1024" />
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">下载包大小：</td>
        <td width=""><input name="content.packSize" value="${content.packSize}" type="text" size="20" style="width:60px;" class="inputwidth01" id="textfield" maxlength="1024" />
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">激活条件</td>
        <td width=""><input name="content.activate" value="${content.activate}" type="text" size="20" style="width:100px;" class="inputwidth01" id="textfield" maxlength="1024" />
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">广告包名：</td>
        <td width=""><input name="content.packName" value="${content.packName}" type="text" size="20" style="width:240px;" class="inputwidth01" id="textfield" maxlength="256" />
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">截图1：</td>
        <td width=""><input name="imgOne" value="" type="file" size="20"  class="inputwidth01"  />
        <c:if test="${!empty content.imgOne}">
          <br/><app:image src="${content.imgOne}"></app:image>
        </c:if>
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">截图2：</td>
        <td width=""><input name="imgTwo" value="" type="file" size="20"  class="inputwidth01"  />
        <c:if test="${!empty content.imgTwo}">
          <br/><app:image src="${content.imgTwo}"></app:image>
        </c:if>
        </td>
      </tr>
      
      
      <tr>
        <td width="15%" style="border-left:none" align="right">激活步骤</td>
        <td width="">
        <textarea rows="4" cols="40" name="content.activateDesc">${content.activateDesc}</textarea>
        </td>
      </tr>
    </table>
    </form>
  </div>
  <div class="lapel" style="background:#FFFFFF;"><span><input name="" type="button" class="input01" value="下一步" onclick="validate.submit();"/></span></div>
</div>
</body>
</html>
<script type="text/javascript" src="/scripts/calendar.js"></script>
<script type="text/javascript" src="/scripts/util.js"></script>
<script type="text/javascript" src="/scripts/form_validate.js"></script>
<script type="text/javascript">
validate.addvalidte(document.form01,{
        rules:{
           "imgFile":{suffix:/.jpg|.png|.bmp|.gif/i},
           "imgOne":{suffix:/.jpg|.png|.bmp|.gif/i},
           "imgTwo":{suffix:/.jpg|.png|.bmp|.gif/i},
           "content.adUrl":{checkNull:true}
           },
	    message:{}
	    });
</script>
